<template>
<div class="notice-switch">
  <div class="notice-switch-text">
    <div class="notice-switch-title">{{ title }}</div>
    <div>{{ describe }}</div>
  </div>
  <el-switch v-model="newValue">
  </el-switch>
</div>
</template>

<script>
export default {
  name: "create-notice-switch",
  props: ['value', 'title', 'describe'],
  computed: {
    newValue: {
      get () {
        return this.value
      },
      set (val) {
        this.$emit('input', val)
      },
    }
  }
}
</script>

<style scoped lang="scss">
.notice-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}
.notice-switch-text {
  color: #00000073;
  font-size: 12px;
  line-height: 16px;
  font-weight: normal;
}
.notice-switch-title {
  color: #000000E6;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 4px;
}
</style>